package com.razorthink.shell.commands.essential;

import java.util.Map.Entry;

import com.razorthink.shell.core.AbstractCommand;
import com.razorthink.shell.utils.CommandLogger;

public class Dashboard extends AbstractCommand {

	public Dashboard(String baseCommand, int params) {
		super(baseCommand, params);
	}

	@Override
	public void execute() {
		CommandLogger.logInfo("\nMy Dashboard\n----------------------\n\n");
		for (Entry<Object, Object> e : System.getProperties().entrySet()) {
			CommandLogger.logInfo(e.getKey() + ": " + e.getValue());
		}
	}

	@Override
	public String getDescription() {
		return "shows the dashboard of current logged-in user";
	}

	@Override
	public String getUsage() {
		return "dashboard";
	}

}
